package com.hzlx.finishedGoods.feign;

import com.hzlx.WorkOrderDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "workOrderService", value = "workorder-service")
public interface WorkOrderService {
    @GetMapping("/orders/byProductId/{productId}")
    public List<WorkOrderDto> getInfoDto(@PathVariable Long productId);
    @PutMapping("/orders/workOrderDto")
    public void editByMaterial(@RequestBody WorkOrderDto workOrderDto);
}
